package com.gdiss.www.constant;


import com.gdiss.www.vo.ResultVo;

/**
 * @author yly
 * @date 2021/2/8 18:56
 */
public class ResultConstant {
    public static final ResultVo<Object> OK = new ResultVo<>(200, "OK");
    public static final ResultVo<Object> LOGIN_ERROR = new ResultVo<>(401, "未登录");
    public static final ResultVo<Object> NOT_FOUND = new ResultVo<>(404, "未找到");
    public static final ResultVo<Object> SYSTEM_ERROR = new ResultVo<>(500, "内部服务器错误");
    public static final ResultVo<Object> SYSTEM_FIELD_ERROR = new ResultVo<>(500, "请求参数中使用注解校验格式的字段名字不在预测范围之内，请及时通知开发者修改");
    public static final ResultVo<Object> DATABASE_HAS_DIRTY_DATA_ERROR = new ResultVo<>(500, "数据库中存在脏数据，请及时通知开发者修改");

    public static final ResultVo<Object> SUCCESS_AND_TOKEN_EXPIRE = new ResultVo<>(200, "修改成功，请重新登录");

    public static final ResultVo<Object> PERMISSION_DENIED = new ResultVo<>(1000, "权限不足");
    public static final ResultVo<Object> TOKEN_EXPIRE = new ResultVo<>(1001, "密匙过期");
    public static final ResultVo<Object> CODE_ERROR = new ResultVo<>(1002, "账号或密码错误");
    public static final ResultVo<Object> USER_NAME_EXIST = new ResultVo<>(1003, "用户名已存在");
    public static final ResultVo<Object> USER_NAME_NON_EXIST = new ResultVo<>(1004, "用户名未使用");
    public static final ResultVo<Object> EMAIL_EXIST = new ResultVo<>(1005, "该邮箱已注册账号");

    //code 2001,3000 已使用，如有需要请设置其他code值

    //    public static final ResultVo<Object> EMAIL_FORMAT_ERROR = new ResultVo<>(3001, "邮箱格式错误");
//    public static final ResultVo<Object> USER_NAME_FORMAT_ERROR = new ResultVo<>(3002, "用户名格式不合法");
//    public static final ResultVo<Object> PASSWORD_FORMAT_ERROR = new ResultVo<>(3002, "密码格式不合法");
//    public static final ResultVo<Object> PHONE_NUMBER_FORMAT_ERROR = new ResultVo<>(3004, "联系电话格式不合法");
    public static final ResultVo<Object> EMAIL_CODE_BAD_OR_EMPTY = new ResultVo<>(3003, "验证码错误或未发送");


    public static final ResultVo<Object> FILE_UPLOAD_FALSE = new ResultVo<>(4000, "文件上传失败，请重新上传");



    public static final ResultVo<Object> CATEGORY_IS_EMPTY = new ResultVo<>(5000, "栏目分类目前为空，请先添加分类");
    public static final ResultVo<Object> CATEGORY_PARENT_ID_NOT_FOUND = new ResultVo<>(5001, "parentId不存在，请使用正确的id");
    public static final ResultVo<Object> CATEGORY_ID_NOT_FOUND = new ResultVo<>(5002, "categoryId不存在，请使用正确的id");

    public static final ResultVo<Object> FILE_IS_EMPTY = new ResultVo<>(5100, "文件列表不存在，请先添加文件");
    public static final ResultVo<Object> FILE_ID_NOT_FOUND = new ResultVo<>(5102, "fileId不存在，请使用正确的id");

    public static final ResultVo<Object> CONTENT_IS_EMPTY = new ResultVo<>(5200, "文章目前为空，请先添加文章");
    public static final ResultVo<Object> CONTENT_ID_NOT_FOUND = new ResultVo<>(5201, "contentId不存在，请使用正确的id");
    public static final ResultVo<Object> CONTENT_TYPE_ID_NOT_FOUND = new ResultVo<>(5202, "typeId不存在，请使用正确的id");
    public static final ResultVo<Object> CONTENT_STATE_ID_NOT_FOUND = new ResultVo<>(5203, "stateId不存在，请使用正确的id");


    public static final ResultVo<Object> INTERFACE_EXPIRATION = new ResultVo<>(99999, "该接口已弃用");

}

